package com.item.service.item;

import com.item.mapper.foodmapper;
import com.item.pojo.MenuItem;
import com.item.service.foodservice;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
@AllArgsConstructor
public class foodserviceitem  implements foodservice {
    private foodmapper foodmapper;
    @Override
    public List<MenuItem> getfood(String type) {
        List<MenuItem> menuItems=new ArrayList<>();

        return  menuItems= foodmapper.getfood(type);
    }
}
